package com.demo.service;


import java.util.List;

import com.demo.entity.po.Violation;

import com.demo.entity.query.ViolationQuery;

import com.demo.entity.vo.PaginationResultVO;

/**
 * @Description:违规记录表service
 * @Date:2025-03-01
 * @author：author
*/
public interface ViolationService{

	/**
	 * 根据条件查询列表
	 */
	List<Violation> findListByParam(ViolationQuery query);

	/**
	 * 根据条件查询数量
	 */
	Integer findCountByParam(ViolationQuery query);

	/**
	 * 分页查询
	 */
	PaginationResultVO<Violation> findListByPage(ViolationQuery  query);

	/**
	 * 新增
	 */
	Integer  add(Violation bean);

	/**
	 * 批量新增
	 */
	Integer  addBatch(List<Violation> listBean);

	/**
	 * 批量新增或者修改
	 */
	Integer  addOrUpdateBatch(List<Violation> listBean);


	/**
	 * 根据ViolationId查询
	 */
	Violation getViolationByViolationId(Long violationId);

	/**
	 * 根据ViolationId更新
	 */
	Integer updateViolationByViolationId(Violation bean, Long violationId);

	/**
	 * 根据ViolationId删除
	 */
	Integer deleteViolationByViolationId(Long violationId);

}